package com.bjpowernode.money.mapper;

import com.bjpowernode.money.model.BidInfo;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;
import java.util.Set;

public interface BidInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(BidInfo record);

    int insertSelective(BidInfo record);

    BidInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(BidInfo record);

    int updateByPrimaryKey(BidInfo record);

    Double selectBidMoneySum();

    List<BidInfo> selectBidInfoById(Integer loanId);

    List<BidInfo> selectBidInfoPage(HashMap<String, Object> paramsMap);

    Long selectBidInfoCount(Integer loanId);

    List<BidInfo> selectAllBidInfo();

    List<BidInfo> selectBidInfoByIdForRank(@Param("idSet") Set idSet);
}